﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Runtime.InteropServices;

namespace T.FAS.Runtime.Base.Entity
{
    [StructLayout(LayoutKind.Sequential)]
    /// <summary>
    /// 数据返回结果
    /// </summary>
    public class TResult
    {
        /// <summary>
        /// 转换为Json
        /// </summary>
        /// <returns></returns>
        public string ToJson()
        {
            return JsonConvert.SerializeObject(this);
        }
        /// <summary>
        /// 返回数据总条数
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 获取Record数据
        /// </summary>
        /// <returns></returns>
        public virtual object GetDataContent()
        {
            return null;
        }
    }
}
